package edu.spec.lyq.week08.class1.book.unit3.one;

/**
 * \* User: lyq
 * \* Date: 2018/10/18
 * \* Time: 10:39
 * \* Description:
 */
public class Rectangle {
    private double length;
    private double width;

    public Rectangle(double length , double width){
        this.length=length;
        this.width=width;
    }
    public double calculateArea(){
        return this.length * this.width;
    }

    public static void main(String[] args){

        edu.spec.lyq.week04.Rectangle rect=new edu.spec.lyq.week04.Rectangle(15,6);
        System.out.println(rect.calculateArea());
    }
}
